Change mocha test BDD to TDD and test structure