App tests, added error route param, and refactor error flow on evaluating state