new tests; reverted buggy 'optimization' in lcs engine