Added a unit test for deserializing queries into type Map.
Add specific exceptions for object not found and record not found.