[translate] Convert example into unit-tests.

- Removed setup because it is unnecessary and conflicts with Nose.