testing for a pushed button switch