Update Virtual-Module

Fix some warnings and add a test.