added simple tests to check constraints. Also created a randomized graph creator class