#327 try scalatest for BDD testing,  fix the review comments
code format
polish Utils