Adding test for getVisible, getZIndex and fixing getZIndex not being available