Added new check for minimum number of records when attempting to load
state from an external source. If min number of records is not
available, state is discarded. Also added configuration changes and Unit
tests.