Generator testing