Don't require anonymous view access for unit tests

Previously some tests using the analytics API would fail when there was
no anonymous view access to the test site.