unexpected function access unnecessary
can't preserve level order
weaken a couple of expect_equal to expect_equivalent because of factor order errors. Remove access to private functions and undocumented APIs
clean up some private API uses, old quickcheck API