add some testing for go package, sync files on every write