Mock config dep for user urls model

Other test was modifying state of object, making tests fail when run in
sequence. Also fixed test that modified dependency globally for all
tests