Coordinates and region objects created and incomplete functionality of detecting regions: test case failing