tests for VM stack operations