converted to mocha & chai