Improved tests for legends with rendering transformation.
Fixed pom.xml with needed dependencies