Added a test case to be able to mock adapters using factories and update phpunit.xml