adapted tests for no database