enable cross version build and update scalatest dependency