In 

    2*a*x**2/z**5*f(x)**3 , 

my power would be 2, It does not contain x**2 * y , so my "test" variable would have terms other than t.