Add many tests for paragraph-properties.

Contributed by Andras Timar.