Added TESTS ORDERED and WEIGHT queries