Move to build_port_bindings(). Added Tests

Signed-off-by: Andrew Burkett <burkett.andrew@gmail.com>