tests: raise exceptions when a test fails to parse