fixed broken tests with the lag parameter in similarity