Using chai for testing rather than expect