Added utility to compute approximate posterior for test points.