added regression test for https://issues.infn.it/jira/browse/STOR-331