Add pickling test
Fix sbt option
use json pickler