update specs, add attributes test