Test Closure::of() for invalid values