fix tests and role setup