Fixed some typos in comments. Added tests for getpart.