Add a test case for startup/shutdown with inheritance

GitHub: #59

It is not unexpected change but it seems that the current behavior is
not so strange.