binary key test cases