updated code to create button to initiate automatic testing