Vm tests

Still missing log tests