add tests for block directive API and parsers