setAttribute Method test sample