Fix exception for model test

We don't start server in model test so cherrypy.request.app is None
and exception translation cannot be used.
Just do translation when server started.

Signed-off-by: ShaoHe Feng<shaohef@linux.vnet.ibm.com>
Signed-off-by: Royce Lv<lvroyce@linux.vnet.ibm.com>