Moved createQuery to the dao

- it's more convenient to create the query using the dao
  so only the dao needs to be injected
Added tests for the new wiki homepage