Added testPacket sorting and auto test runner