api tests to update/delete roles

- added two tests to delete and update role.
Any particular reason this line has been dropped? The `Permission` entity could probably use a rework, but how about in a separate PR?