[Loader, tests] remove debug code