Test templates and and update to ternary operator syntax