Add functional tests for "kpm pack"