Added tests for the savepoints hooks.