[UPDATE] add template tests.