Testing creating an object on the database class