Complex logic tree test

The test was provided by Damiano (see the files attached to https://bugs.launchpad.net/oq-engine/+bug/1317793)
Tests are running here: https://ci.openquake.org/job/zdevel_oq-engine/392