Add template related tests