Fixed is_test condition for pem file