fix self edge test and add double version