fix composer install/update issues by making the minimum stability required 'stable' and downgrading phpunit to 3.7, also specify mockery version instead of the bleeding edge verion
update tests to support phpunit downgrade to 3.7