Some basic algorithm tests