Fixed location test, added rule file parsing, introduced bug in parse
method