added working test for region added, and made it generic