assume roles array always present
stub API request in tests using jquery-mockjax