added CR LF test and verifying exception message in tests