TST: Moving testing method outside of TestCase

Make assert_numpy_array_equal available without subclassing TestCase; see #8023