MDL-38498 repository: Unit tests for repository::check_capability()
MDL-38498 repository: Tests use data generator