added test class to java template