Made methods for setting requests attributes public for use in tests