modified test_snapshot_pattern so it can work with jenkins