some little fixes and test cases from course for algorythms