refactor test and print the line to check with the expected answer.
Merge pull request #1 from nouiz/GSoC2014_part2

refactor test and print the line to check with the expected answer.