Added a test for $object->a->b.