Add test of tensor-valued Constant

Slightly better test coverage by checking behaviour from #364.