Fixed PMD and @covers errors