Test autohide function