add tests for new accessors
Merge pull request #299 from ianstormtaylor/clean/accessors-tests

add tests for the new accessor logic