Fixing unit tests with composer

This PR fixes unit tests with composer.