test cases and parser