Junit test fixes.  Should fix all remaining in Repository except for
two classes.
Merge pull request #977 from tkafalas/feature

Junit test fixes.  Should fix all remaining in Repository except for