Fix signedness issues in VM tests