TryCatch test assignment