added more input validation and moved test_input() to AppUtils lib class