fixed starting a test before showing corresponding window
corrected buttons test to finish when all buttons are pressed