change :api to :resource, add tests
don't set resource on ns->handler-fns