Test sleep is called or not.