replace gloabl with application.global
scalatest recommends to replace expect() with assertResult()
replace deprecated method