Add tests for Chain storage engine.