Adjusted the specification of BackgroundTaskExecutor.
Added tests for BackgroundTaskExecutor.