Added more tests and fixed typo in DoesNotExist error handling.
Finished up dpnmq handler tests.