Added unit tests to access controls.