Fixed error when testing an invalid argument