Add sonatype profile and tweak test for release