refactor Line Constructor test and make it pass