Test looks heavy.
What if we use mock object for the log route?