test_input_reverse function

Test if input is a logical