attribute assignment tests