Increase test timing tolerances

Extended timeouts and delays in background task tests to reduce flakiness caused by timing-sensitive operations. Changes include increasing a task completion delay from 400ms to 5000ms, a status check timeout from 5000ms to 15000ms, and adding a 15000ms timeout to a polling operation.