<sub_user_test.rb> Added logic to make tests work with remote-user auth

remote-user broker auth relies on the trusted header being set; this
change updates sub_user_test to detect if basic auth/remote-user auth
is enabled and sets the header when needed.