added test testChooseBaseDocument