add a/b test code to head