Fix test_livestatus_mongodb :
 * Use template to simplify it (init_livestatus).
 * Remove useless tests (not using mongodb).
 * Add assert and test on mongodb database
 * Use time_hacker to fake real time.