Added test to ensure that callbacks are functions.