Added test case for function getPartsFromSection()