Added a prompt until valid test using several mocked inputs