more tests for remove(index) and connect(piece, code)