added test for MID-2027
Merge branch 'master' of github.com:Evolveum/midpoint