replace depricated expect with assertResult