Added tests for access control.