placing in mocha and testing framework