Added regression test for https://issues.infn.it/jira/browse/VOMS-296