testing the flush input function