Added a test to fromEc2Role