Ensure state transitions for tests

Minor rename to make common tests generic.
Added error call tests for stpped state