QueryManager test working