adding error fixes from test