Corrections to the new functions names and error message wording

Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index c7186af..f5a8793 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -1003,8 +1003,8 @@
     if( slot->lock_count != 1 )
     {
 #if defined(MBEDTLS_TEST_HOOKS)
-        if( *mbedtls_test_hook_value != NULL )
-            ( *mbedtls_test_hook_value )( slot->lock_count == 1, __FILE__, __LINE__ );
+        if( *mbedtls_test_hook_assert_test != NULL )
+            ( *mbedtls_test_hook_assert_test )( slot->lock_count == 1, __FILE__, __LINE__ );
 #endif
         status = PSA_ERROR_CORRUPTION_DETECTED;
     }
diff --git a/library/psa_crypto_slot_management.c b/library/psa_crypto_slot_management.c
index 256408d..4a0763f 100644
--- a/library/psa_crypto_slot_management.c
+++ b/library/psa_crypto_slot_management.c
@@ -416,8 +416,8 @@
     slot->lock_count = 1;
 
 #if defined(MBEDTLS_TEST_HOOKS)
-    if( *mbedtls_test_hook_value != NULL )
-        ( *mbedtls_test_hook_value )( slot->lock_count > 0, __FILE__, __LINE__  );
+    if( *mbedtls_test_hook_assert_test != NULL )
+        ( *mbedtls_test_hook_assert_test )( slot->lock_count > 0, __FILE__, __LINE__  );
 #endif
 
     return( PSA_ERROR_CORRUPTION_DETECTED );