Added assertAttribute, fixed semicolon in byQuery