Add unit tests for anonymous user