fix PMD error, remove test covered by lint