fixed tests to use django client