added failing test for converting a string to int
added a check to ensure the convert can occur before converting