Fix assertFalse when element is not present