Unit testing chai testing