Applications middleware tests cleanup.