Add pack_matrix test
3 files changed