[MAINT] Add functional tests for sleep functions.

As the title says.