PLATFORM-392 Test script returns correct exit code