Added unit test for class.engine.php and class.router.php. Modified a few files and configurations so it can work with the written unit test