Better delayed job test handling