Fixing fail_wrap for travis tests.