getNumOfSections and Tests