added create and edit friendship methods and associated tests