move setting changes in tests to override_settings

Addresses an issue (raised by my previous commit: https://github.com/edx/edx-platform/commit/03aee3ed79188863d333cff041639b1ccf105e83) where many RuntimeWarnings were being generated upon trackinglog testing.

@wedaly does this look ok?
@nedbat