mocked out database in tests