add tests for fetch.go and flock.go