Unit test for friend done