Update settings test

Improved code coverage
Update File class

Read should only return null on failure and not generate a E_WARNING.
Fix Scrutinizer issues