testing for users portfolio sharing method