in endpoint_spec, separated defaulting logic from the specific value we default to
Merge pull request #36 from adelevie/master

Refactor endpoint_spec to keep tests concerned with only one thing