Added parse and scan predicate

Moved the commented code in to test_parser:parse_and_scan/2