add logs dir and cleanup tests