added: test cases for notary querying
fixed notary querying passed on test cases