using with for tests