* updated detector w invalid_token case * unit test for rt invalid_token * updated comment * updated comment