more complex test for class instances