Tester not working with Mocha programmtically