improved tests for parsers (and relative source code)