Add Mockery and PHPUnit
Make more test friendly.
Add tests