Use expectResult instead of expect as per latest scalatest