Add getOrCreateState test for FileStates