*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
It would be cleaner IMO to use the setUp and tearDown functions -- setUp would back up the config data, and tearDown would restore it.