context "when given valid attributes"