cleanup; added test after connecting to the db