change expect result to string and refactor steps