Working tests (with in memory db)