added test for validation input should be defined