test both string and int output.