*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
I moved the respective parts to setUp() and tearDown()