main: add basic integration test

wait on #1315 
good point! i will do it in another PR.