The name of the function was incorrectly chosen, as it is not performing what it is saying. It should be something like: robot.validateThisIsAnUnseenBarcode() (but this seems very weird to me). Do you have some suggestion for a method name? I don't know how to call it.