Tests: Write stateserver unittest for clrecv keyword.