Unit testing and added getInfo method