Fix bugs and upgrade 0.0.3 and upgrade scalatest and make dsl code
simplely.