Strange behaviour of tests - mocha and ejs not playing well together?