Error when baseline crosses any shoreline

with some tests