adding setHandlerForCode + tests, and more other tests