add test for the Repository scope 'pub'

fixes #950