moved tests to chai assertions