Added basic read test for sub-elements and associated mocking support.