Fix crash in reload_tables()

Add table unit test, move table address lowercase logic in to address
module.