Quadratic To Matrix Test