Fix direct calls behavior.

 - Bug 1034068 — Trying to call a non-registered identity
 - Bug 1034537 — Trying to call an array of identities is not working as expected
If we change the error in the index.js, we should update the test here as well.