Refactor test codes for PrimitiveProduct
Fix the test using Hermite polynomials
Test hermitian_coeff_decomposed for each direction