Added a local query test