fixed optimiser tests