Add a strict mode to optionally enable local link checking

see #150
Add a test for the strict mode and change to an exception rather than
assert
Merge pull request #279 from d0ugal/add_strict_mode

Add a strict mode to optionally enable local link checking