Updated tests, removed open db connection.