Add template const T& test case as happens in the filesystem TS.