improve register portlet
add RegisterPortlet testcase