test case for phase/ state change.