add test for VM-anonymous declaring class