Validating the correctness of the svd function.