Switch back to using device Scalar in matrix_operations test