Test for getValue with string input