Add tests for the translator functions.