Adding some db object unit tests