Begin with testing

add several mapper tests (not complete yet)
fixes