Add test for agent resources:

@peterbourgon  @jmyounker @stuartnelson3 
Can't merge this :)

http://blog.campoy.cat/2014/03/github-and-go-forking-pull-requests-and.html