unit tests for BackgroundJob::checkMaxRuntime