add failed character matches to test data
calculate line and column numbers for parse errors