add tests for errors on extra keys
added test for missing keys