add extraOptions and fix test using SNAPSHOT version