Added tests for pkgrepo