added tests for GetStateValue