Added more scenarios to junit, TODO: add exact exception expected for invalid address being present