Add test for trac:11939 #3228

@mtbc Suggested copying the test from https://github.com/openmicroscopy/openmicroscopy/pull/3228 http://trac.openmicroscopy.org/ome/ticket/11939#comment:9

Here it is
--depends-on #3228