fix trash bin expire operation and add unit tests

add unit tests for expire operation.
Yes sorry, I just grepped the code afterwards and saw that it wasn't a new name.