only return first key's value if there is only one key
improve tests
localhost