Cleanup unittest common library.
Tests: Update test_stateserver to be max_field_length agnostic.