AddVM validation

I have added validation to AddVM view and created tests for this. On this occasion I also created a little class that facilitates API testing and migrated an old test to it.