Added a --repeat option for testing
Added repeat option to test()
Merge pull request #3019 from astrofrog/repeat-option

Added a --repeat option for testing