got the write method of dataSource to a testable place
Merge branch 'master' of https://github.com/num18s/localChat