test failing when space not at the end of the line