Altered test to catch JSON validation exception