Fixes paypal payment test to work with popups