get_by_attr() Function and Addition of attrs to Tests