Add test for getParent

Change-Id: Ica1c3118212037d18f921a613514dd38180122b5