Fix type for VM test

Fixes #2709