Add test and doc for External