all the testing gravity code