add features to test source and dest matching
Fix handling of source-dest matching being too aggressive

Fixes #1130.
extend feature tests and use scenario outline
Merge pull request #1556 from maul-esel/dest-match

Fix up matching against source and destination when the two locations are similar.