move tests to django test case