api tests for graph and template endpoints

Addresses #79 and #77