Hardening/assoc unit test hotfix

Fixes a bug that caused a few unit and harness tests to faik. The bug I had introduced myself previously, no record of it.

Also a new unit test for associations.
Fixed in https://github.com/telefonicaid/fiware-orion/commit/a60ab46c2fffed7bd62f63111639df909eca1d54