Test sparse diff