Replaced calls to log() with the logger object.
Added a simple test script with a single test case that checks that the route function works.