Recover files after Ubuntu Installation

Due to some problems, I tried installing Ubuntu in my machine. But accidentally I installed it in the same partition where my earlier installation was. My data was inside the home directory in the same partition. So all got wiped. Is there any way to recover the data? I am trying to use Testdisk. It is analyzing the disk for several hours. I am not sure how to use it properly. Is it the right tool? Or should I try any other tool?