12474 perm bug (rebased onto develop)


This is the same as gh-2849 but rebased onto develop.

----

See:
 * https://github.com/openmicroscopy/openmicroscopy/pull/2844
 * https://trac.openmicroscopy.org.uk/ome/ticket/12474

This PR corrects the now failing tests which were meant to enforce the projection of permission objects. A workaround test method has been added as an example of what could be used rather than gh-2844.

/cc @chris-allan @dpwrussell