(Bug 4788) Add test for entry lookup.
(Bug 4788) If we guessed the anum, then save it as "untrusted_anum"

Intead of trusting the anum based on the ditemid, save it under
a different name, which we can later use to compare against the actual
anum we fetched from the database
Merge branch 'anum-bug4788' into develop

* anum-bug4788:
  (Bug 4788) If we guessed the anum, then save it as "untrusted_anum"
  (Bug 4788) Add test for entry lookup.