server fix some nullPointerExceptions, add CommunityUserController testsand functionality