The commands you passed to `sed` mean: _if a line matches the regex, delete it_. That's not what you want.
echo "$TEST" | sed 's/rev0*//'
This means: _on each line, remove rev followed by any number of zeroes._
Also, you don't need `sed` for such a simple thing. Just use bash and its parameter expansion:
shopt -s extglob # Turn on extended globbing.
echo "${TEST##rev*(0)}" # Remove everything from the beginning up to `rev`
# followed by the maximal number of zeroes.