Use <> for "not equal" comparison in SQL
Unit tests for NotTicketFlag search

also fix deprecated use of $Self->{DBObject}