Add test for force-directed graph PNG generation.