diff --git a/tests/suites/test_suite_bignum_mod_raw.function b/tests/suites/test_suite_bignum_mod_raw.function
index 8759bc9de5..ac8a02fc3e 100644
--- a/tests/suites/test_suite_bignum_mod_raw.function
+++ b/tests/suites/test_suite_bignum_mod_raw.function
@@ -545,8 +545,8 @@ void mpi_mod_raw_neg( char * input_N, char * input_A, char * input_X )
     TEST_EQUAL( 0, mbedtls_test_read_mpi_core( &A, &a_limbs, input_A ) );
     TEST_EQUAL( 0, mbedtls_test_read_mpi_core( &X, &x_limbs, input_X ) );
 
-    TEST_EQUAL( a_limbs,   n_limbs );
-    TEST_EQUAL( x_limbs,   n_limbs );
+    TEST_EQUAL( a_limbs, n_limbs );
+    TEST_EQUAL( x_limbs, n_limbs );
     bytes = n_limbs * sizeof( mbedtls_mpi_uint );
 
     ASSERT_ALLOC( R, n_limbs );
@@ -568,9 +568,8 @@ void mpi_mod_raw_neg( char * input_N, char * input_A, char * input_X )
     ASSERT_COMPARE( R, bytes, X, bytes );
 
     /* Neg( A ): alias A to R => Correct result */
-    memcpy( R, A, bytes );
-    mbedtls_mpi_mod_raw_neg( R, R, &m );
-    ASSERT_COMPARE( R, bytes, X, bytes );
+    mbedtls_mpi_mod_raw_neg( A, A, &m );
+    ASSERT_COMPARE( A, bytes, X, bytes );
 exit:
     mbedtls_mpi_mod_modulus_free( &m );
     mbedtls_free( N );