testing if function fires