Bugfixes to contentaccesstests.py + Public.py.