test: added test case for posix sleep