STY: use assertItemsEqual following review suggestions.
REF: make test_os_error more consistent between darwin and linux.