Tests for BackgroundJob class