Apply first derivative test (#539)