Tests and fix for #94

Starting branch to fix #94. I have a failing test to start with.
It seems to me that this test might be incorrect, in the samples above the two lines with secondary_ham has the content 'another bar', in this case it should not be **equal** to 'bar', you can specify the exact term or use the '~' to compere them with LIKE sql operator.