main: add basic integration test

wait on #1315