stats.completed returns as a string
  fixed it(in lua script)
improved tests