fix tests in test_vim and test_vim_util

Change-Id: I2d184bcc42d3e97c7967b4237c4e8e2dad67b008