Fix bug where environment variable LWR_CACHE_THREADS was not being used, LWR_CACHE_TRANSFERS was being used instread. Add test cases to verify configuration of ClientManager is properly executed.