Add partition names to identify and reference partitions easily.

Also implement subdirectory handling in unit test cases.