problem impl with nio/scalaz + test