Contribution to specification tests

These tests are mostly regression tests. Also there are tests that cover basic cases for
 * blocks
 * structural types
 * dimensions

I'm not expecting that this pull request will be accepted/merged as-is, please feel free to change tests in any ways that are more convenient for you.