alter error codes in tests