Fix tests for older tastypie versions.