Make sleep configurable, test worked fine.