Add test for agent resources:

@peterbourgon  @jmyounker @stuartnelson3 
Done.