diff --git a/tests/virgil-cards.js b/tests/virgil-cards.js
index <HASH>..<HASH> 100644
--- a/tests/virgil-cards.js
+++ b/tests/virgil-cards.js
@@ -130,7 +130,7 @@ test('create private virgil card', function (t) {
 		var token = VirgilSDK.utils.generateValidationToken(
 			username,
 			identityType,
-			process.env.VIRGIL_APP_PRIVATE_KEY.replace(/\\n/g, '\n'),
+			process.env.VIRGIL_APP_PRIVATE_KEY.replace(/\\n/g, '\n').replace(/\|/g, '\n'), // workaround for travis env vars
 			process.env.VIRGIL_APP_PRIVATE_KEY_PASSWORD
 		);
Update test, add workaround for travis env variables new lines