added test for invald input