Adds test-mode '-t' flag

On Qemu this will setup the nessessary structures and network but will not
execute the actual allocation