add tests for span directive API and parsers