test for key