added specs for :after_commit hook