Fix package privacy tests on nightlies
This MR fixes #75 (closed) and errors associated to the evaluation of package privacy, from the stand-point of an anonymous user (nightlies use-case).
This MR also introduces a test unit for this feature to ensure it continues working.
Edited by André Anjos