added unit test that connects to database and resets for each run