add test to verify syntax error as payload