fix trash bin expire operation and add unit tests

add unit tests for expire operation.
"retention obligation" is used all over the code and in the config.php. I don't want to add additional names for the same value. This just increases the confusion.