Testing creating an object using the database class