tests: test collection validation