move storage creation out of dynamics engine
fixed errors in tests