bug fixed and test added
Had wrong expection type on a catch
Added fail()
Updated changelog
Merge pull request #580 from realm/bp-test-link-queries

bug fixed and test added