Add snapshot dependency in pom.xml and update tests