So, a test https://github.com/assaf/vanity/blob/master/test/experiment/ab_test.rb#L122 seems to check for this? Why do you say that the function is called twice?