Added tests for the virtuals plugin and some fixes

Yep, yep