before and afterSave hook tests

closes #4