[view] [middle] [test] added a prefix collision test, then fixed prefix to handle it appropriately