resolve: add observer func to write more precise tests
resolve: remove assumption that A runs before AAAA

Tested by changing the unit test code, after the commit, to run AAAA
before A and checking that everything still works fine.
More clear test/net/resolve.cpp output