added tests to ensure the row count for affected models is correct in save and non-save conditions.