Fix tests and add logs as a dependency