WS_ERROR -> ERROR, WS_STATE -> STATE.
Updating JS-Test.