[test][assign] fix errors in test of variant support for assign