Implemented UpdateAutoTest, not tested yet

Also added context with initialization to get data from db
Revert "Implemented UpdateAutoTest, not tested yet"

This reverts commit ccd8343225b196bbd1502573d1f2b2f6a2401a4d.