test constructor invocation Pattern