refactored address test