Add test for promise.catch(); refactor Loader tests to use catch().