added unit test to verify AR afterSave isNewRecord value

closes #1084