instead of automatically switching between normal and scheduled NIF, make it explicit by introducing third argument to to_html for easier testing.