Test cases of part 1