Converting to gradle build. Added test cases back to source.