Added junit test and validation for name