add test cases to bit swap