Bug fix in strip inverse map.
Added testing framework with some tests.