main: add basic integration test

wait on #1315 
I know @bcwaldon has very strong opinions on this kind of field but I can't remember exactly what :-(