Minor Bug Fix

Added sleep to send_logout to give more time to receive logout message.  fixed friday operating window check. added tests to ensure