Add test cases for hasChildSpace method