QA-5666 : added tests for query path