Testing of internal-combustion engines