fix spec failure when running with unique file
separated initialization of IO and Cache adapters