Improve access comparison
Add test
Merge pull request #37 from timowest/master

Improve access comparison