upd test code