Modifications to make PasService testable.