librarian-puppet package causes an infinite loop

Add tests
Merge pull request #172 from rodjek/issue-172

Librarian-puppet package seems to get into an infinite loop