added mocha model test hook