Thanks for query,
You have palpated is epididymis
As it is connected with vas deference you feel its attachment.
Some times due to its prominance you feel it separate from testis.
So nothing to worry it is a normal anatomy of spermatic duct system.
don/t worry for cancerous growth.