Add some unit testing

Unit testing for the following methods:

- `newFromBuilder`
- `getInheritanceStorageMode`
- `setInheritanceStorageMode`