added invite friend feature with tests