main: add basic integration test

wait on #1315 
This function should return an error then so you can actually test what you expect. You can run it in a goroutine (in `Start()`) that just logs the error.