CHANGE add vm unit tests