Fix an error message
Description
Fix an error message and remove an unnecessary double test.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.
Fix an error message and remove an unnecessary double test.