Tests for repository