Added unit test for address query