Sleeping well with unit testing