added tests to key_spec and language_spec