add testing for state/erasure.go