added query spec test