Added register success inetegration test
Added Gradle support for running test.