Test for deeply nested properties of complicated JavaScript objects