Agent tester

test the pre-defined functions and make sure they do what we want them
to do.