main: add basic functional test

wait on #1315 
i don't know. i think ec2 adds this to faciliate reboot which happens frequently. i will remove it now.