Update test_hand.py

Editing needed and code refinement