Add integration test with harcoded db query