Added Unit Tests for generic repository

closes #4