Add simple unit tests for NodeEnvironment.hasCustomDataPath
Write index level state to custom data path
Write shard level state to custom data path also