Refactored TB3 test ip address whitelisting.

Change-Id: I7f9aae8ed3ea163b19d92caa652313dfc2c4a159