Thanks Gyorgy Sarvari , for insight
Will re-look at these suggestions and re-share the patch 

The problem with test cases in imagemagick were that it would require manual verification of files generated 
Example they require user to manually open the output file and then check if the drawing are proper or not . 

That i thought might not be usage for ptest , hence created an simple test which generates the source and then use that source for test 

Point-2 & Point-3 , i will work again on patch and share them shortly 

Thanks ,
Ashish Kumar Mishra