Fixed sync bug with friends array
Add tests to travis