Move to chai for tests