check that 'to' is greater than 'from' in test mode