Add tests and functionality for objects permissions.