apply exported NewRequest() changes to test