fixing broken test after merge

Putting back @mlawrie's fix for isVisible