Adding unit tests
Merge branch 'master' into adapter
Using autoload.php
Moving functions to common adapter