lesson association and attr tests