*8854* Added tests for getRemoteAddr trust_x_forwarded_for config setting

Added unit tests for http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8854
Correct, for these tests it doesn't matter as the config registry is not initialized when they are executed and I overwrite the relevant part in each test. I still added a reset to avoid conflict with future tests.