Added test for check if just allow create a pair if a name project is setting. Also, refactoring in rotation.rb excluding the magic numbers.