added validation for LossErrorCode
making sure LossInfo is being saved
removed warning when running tests