Invoke dispatch in a test