fix typo
flesh out functional portion of entity encoding test
flesh out functional portion of json encoding for relation test