Some new vm tests.

Originally by @brianmcd, modified by @domenic to reflect context/global separation.