optimize code
add another test for usage without template link renderer