Callbacks: Register only function callbacks

Closes #625
Negative testing like this has very limited value. I don't think we need this test at all, since the error handling is pretty trivial.