Port over test case for multiple Query elements