[extension] consistent use of constants, extension_dir in test helper