Add test of Sources.source_directories.

Added a small test (randomized) of the source_directories property on
Sources.