Add small test executable that tests vim interface. Fix bug.