Updated unit tests to use chai.expect() instead of assert()