PMD violations cleared and added user defined test for grep