Added assertNotVisible.