fixing some doctest failures, added asarray conversion to identity_quadratic