Bugfix for anonymous user
Added Test-Case for the correct behaviour