upadate btg test and function file