tests for removing \r