implemented region layers but unit tests are failing, @mortenvp can you see what's wrong?