add failure unit test and fix for observed edge-bin repeat bug