move code to VisibleHandTest