test with real database