add test and fix for assertion containing \r\n
0.18.0