Add test for agent resources:

@peterbourgon  @jmyounker @stuartnelson3 
?! I am a little bit confused with the imports, pull request... :D