Adding tests ported from tensor-core.