printing the exception if map factory test is failing.