switch to chai for testing, as it can run in the browser