Unittests for models and ExpirationManager