fix token
fix types
fix var ref
add a setup helper
add mocha opts
add tests over mapper
first commit