Add some basic tests for parameter checking
Add config function to Graph