Add proper try/catch around asserts in mocha test that was failing