change var params to map
add test code for params DSL and param parser