safeDiv in spec (due to scala-js semantic difference in divide by zero)