Test BDB reading/writing for scripts.