Testing row writing logic.