Adds trash feature and unit test for element

includes commit by Andrew Hooker to speed up test case