Tests written for the client-side logic of the database receiver. Paired by Michael and Richard.

The tests for the client-side logic of the database receiver has been written, with all of them currently failing due to a lack of implementation. (Feature #181)