Integration tests

Replaces #20.

Will try to fix those with further pull requests.
If those are not accepted or you like to test it separately you can refer to this branch