Fix require mock prompt in test