How this happened?
Move common fucntions
Add randomized exchane tests