Adding test for parent function