adds tests to creating and editing treatments
pulls common patches into setup
changes manage.py to use test settings in order to disable django logging durring tests