exercises: Fix longseq with its test cases