Fixing laravel compatibility issue in tests.