Tests for edge replacement

Signed-off-by: Ken Barber <ken@bob.sh>
Get tests to pass

Signed-off-by: Ken Barber <ken@bob.sh>