add test helper func and test create/extract tgz