basic test for ApiDispatcher

Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>