Fixing keygen command test - replacing \r and \n separate