Add has and hasNot query tests to the EntityStore