Added some tests and friendship controller for upcoming front-end additions