A complexity test based on the correlation integral