Move test cases out of mygetline.c