Refactored and fixed most of the self-hosted

vm tests. Now the tests from the self-hosted vm are run separately