added qs testcases (working)