test case should deal with \r characters