Clean up state after test too

Because content is not serializable by upper layers.
Merge pull request #232 from digawp/datastore

Clean up state after test too