fix all line based tests and they work