extracted methodName derivation logic to testable method + added test