Tests: Cleanup stateserver test_inheritance.
Tests: Clean and improve stateserver test_error.