testing for key