Whoosh

Set the sqlite3 db engine when working with test and define  Factories  for some models.

Also set the order_by and haystack query depending on which search engine is defined. This allow to work with whoosh engine.