add a test to test class instances in goroutines