Added tests for System module

Replaced `require_once` with `require` in layout files
Fixed ControllerTestCase