add test code of pack