Move the deptest code from frontend to backend.