Add templatedir setting test