Added test for error condition. Removed strconv error: regexp test makes it unnecessary