Adding a test for error handling and fixed issues with the ordering test