added unit tests for access