add provided test suite for gen_all_holds
complete function gen_all_holds