Fixed issues with cache and add test of init function
Added refresh option to weather cache