Added missing persistence unit tests and methods for Permissions.