Use keywords instead of strings for JSON-parsed objects.
Refactor failure test cases.