main: add basic integration test

wait on #1315 
Hm, OK. To be clear, this is only for tests?