integral_test was incorrect in last commit, replacing code with proper test.