[Utils/Func] Added Func::only().
[Utils/Func] Added tests for only().