Fixed namespacing in exception calls.
Added coverage specifiers for test case.
Added test coverage for API query exceptions.