test previous occurrence, occurrence incrementation