week 2 lecture: tests for sorts