Update DriverFactory.php

Don't add a driver with null-name
Minor CS fixes
Tests added
CS fixes - merges and fixes #196