unit test for level queries controller