Add more test cases for part hierarchy program.