Clean up decision middleware test cases.
Clarify errors.