tests on Collection and Eloquent