added testcases

Added two test-cases for exporting graphs that were generated by 'add' instead of 'resource'