- merged getUnusedSpace and getUnusedPartitionSlots

- use RegionInfo in interface
- added testcase