Update plugin segments to use bindings
Update tests

Unit tests are not run on external segments. When external segments are
moved out of the core repo the extra test code won't be needed.