added test function for terminating windows azure vm