Added test to validate the resource names given to machines and security groups.