added getCode
fix some vmSystemOperationsTest error tests; 7 remaining to fix