testing tool for class instances