added unit test for shredding logic