add scalatest and refactor Slick api