Added a unit test for more longer keypaths.

Queries with a keypath like x.y has not been tested.