converted tests to use mocha & chai