Added in the ability to get properties by passing in an index
optionally. The index defaults to 0, so the old get_property method is
backwards compatible. I also added a unit test to ensure it retrieves
the correct value