100% coverage and only key validation

key should at least be a non-empty string