interruptible sleep moved to class
spec's added
connection test added