Updated test file to use mocha and chai