Unit tests

Added 100% unit test coverage for lib/System.php and TravisCI configuration.