add unit test for mishandling access(3)