Tests for https://issues.infn.it/browse/VOMS-204