change test to test both enter and exit conditions