Fix VM test for 1.8 mode