Fixed a bug where the test results were being sorted out of order