testing sleep func on different platforms