tests that save purges things correctly