Modify api tests to use django TestCase

This should fix the intermittent issue we were experiencing where data would not be purged from the test database in between different classes of tests (https://github.com/OSU-Net/cyder/issues/406). Seems to be working for me, anyway.