std.functional: unittest oprimization