Add scalaz dependency. Complete test for #490.