Fix failing tests due to unclean test database