Fix bug where the bottom right cell was not being updated

Also, add the input that caught this behavior to the testset.