Add more process descriptor tests

Try to document expected behaviour by adding more tests
and more comments to existing tests.