tests: Make State Server's test_inheritance properly clean up.