fix trash bin expire operation and add unit tests

add unit tests for expire operation.
Was a bit confused with the difference between `deleteExpiredFiles` and `deleteFiles` but reading this method made it a bit clearer. Not sure how to rename these to make it clearer.