refactor tests to use dj testcase