Add test for agent resources:

@peterbourgon  @jmyounker @stuartnelson3 
Maybe I'm overlooking something, but why don't you use an `agent.NewClient` to interact with the URL?