added tests for role API
fixed missing $forceUpdate parameter check