main: add basic functional test

wait on #1315 
i want to keep cluster and member helper struct at the end of the file..
i will add a TODO for it.