Add timeout to worker tests