[FIX] Update test for external id according to the fix for lp:1194893
[FIX] Generates external ids based on the actual model's name in the case of relation fields
[FIX] Generates external ids based on the actual model's name in the case of relation fields