added additional test code and cherrypy