fix trash bin expire operation and add unit tests

add unit tests for expire operation.
I also don't know a better name, but therefore we have documentation which makes it obvious ;-)