aggregate and cleanup functionality works as expected