#30 added unit tests to get behavior when access permissions are in error