tests working for convertToIdQuery