added a test for QSort