refactor admincli tests and a bugfix for broken metadata records
- refactor many admincli tests to better support random testing and addition of new tests
- bugfix for admincli to better deal with incomplete dataset/storage records
- additional tests
Edited by Shane Hutchins