refactor case to method for additional test cases