Fix double definition of coeff
Run generated perl code and compare with expected
Add timeout to tests

In case it hangs, it will terminate itself
v1.004

          Run generated perl code and compare with expected
          Fix double definition of coeff