testing resolve method