Resource management's unit test updated, Resource management's save
crash fixed (because UNIQUE values)