Portlet-tests: several parts rewrited to Red Deer + refactoring