refactored shell command to retry five times, and changed test to exec a shell function that tests this by failing, then passing