Added repository tests for discrete context