Add tests for veryfing replace operation for controller

This tests reflect problem reported in FlowForwarding/LINC-Switch#305.