Investigations on performance and spectroscopic capabilities of a 3 mm CdTe Timepix detector