First complete version of test_cubature.py