added key_handler test & updated config test