Add test bit logic