It does not look as a usual integral test.  Probably, you should test actual output (maybe run simplify on it).