Fix normalization of lawgiver transition ids.
Improve base tests for more complex workflows.