Initialize context data from meta data
Added easier mock initialization