Added Test Factories

updated user freindships front end and added tests