#SB-188: Implement trash emptying

Fixed broken test.