add tests and scalacheck
add scalacheck to build.sbt