Fix unit test errors in test_plugin
Adapt expectations to actual values for lnf
Added tests for emitting links