More tests; error handling bugfix in vm daemon