store fields during init, added proper test