missing include for rand() in self-tests