[PATCH] test_sleep.py: make sleep time and margin configurable