Use mock for testing translator