tests for DSL
add dsl tests
add reduce test
cleanup