Adding support for optionally pass template class attribute to compare in assertion