Add unit tests for parseRegions function