[test_addr] add more tests, and mock more things

Slowly getting the test coverage up