Convert endpoint tests to chai assert