add unittests for associating prefixes
implement prefix association