test implicit constructor