adding the dispatcher function definition in test