test: Change zpoolTest to a pure helper that returns a clean up function
test: Change zpoolTest to a pure helper that returns a clean up function

This way we can avoid a level of indentation.

mistifyio/go-zfs,mistifyio/go-zfs