Add methods to get properties from objects. Plus tests.
add tests.