Added unit tests for route callback function.