rewrote parser tester to junit tests