toString and testing