Logic of test changed: the action is now executed when the test is true