shredder test thread safety