fixed erroneous query service tests