add code for test getline