Updated
Added functions tests.