Make tests for run program by VM and fix bugs in VM
Fixed bugs in determining code limit and test it by unit test
Add test for go out code limit