Fix broken travis builds

Hi,

I found the cause for the broken travis builds:
```
/home/travis/build.sh: line 157: warning: here-document at line 63 delimited by end-of-file (wanted `BASH')
```
I could not find out what travis is doing, that the multiline cat fails, so I put the code directly into tests.sh and run.sh.

Best Regards,
Roman