unit tests for vm DOM methods