refactor LexerTester a bit before adding Location
add Location
add location to ParseException