Yes. You will need to look at the RowState of the row. It will look something like this:
If MyBO.CurrentDataTable(MyBo.CurrentRowIndex).RowState = Added Then '-- Put your testEnd If