Added testing units to check for convergence before getting coefficients and to check  multitype prior dimensions