[PATCH 4/4] Add some unit tests for the new source format