added test for model capture and revert