[nandpart][test] Add unit tests for nandpart. Change-Id: I6d3324df8781acf0fcd7e2b29331591292076fca Tested: Ran `runtests -t nandpart-test`