Created database unit tests