Moved the logic tree tests into commonlib

See the companion https://github.com/gem/oq-risklib/pull/86
The tests are running here: https://ci.openquake.org/job/zdevel_oq-engine/866