Added timing comparison assertion and tests