test(rest-api): test error handling, json exception