Updated exception raising message.
Updated test_input_is_rejected test.
Added test_input_is_rejected_because_not_in_final_state test.