All functional tests changed from deepEqual to chai.expect