region: make unit test working, minor fixes