createAttribute Method test sample