support inline blocks for callbacks

- add callback tests