Refactor tests poms