add more experimental test code, still no way to easily fix BDB secondary indexes