fixed handling of excluded regions, added some tests