test subjectextractor in spec