fix(tests): Chai.js throws Max Callback Stack Error on PhantomJS

This workaround solves that issue.