Converted unit tests to use chai.expect